@import "tailwindcss";

:root {
  --background: #ffffff;
  --foreground: #171717;

  /* Softened Orange-themed color palette */
  --primary: #f87621;
  --primary-light: #ff9a60;
  --primary-dark: #d16013;
  --accent: #ffd8b5;
  --secondary: #2a2a2a;
  --tertiary: #f9f9f9;
  --success: #4caf50;
  --error: #f44336;

  /* New variables for professional UI */
  --card-bg: #ffffff;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  --card-border: rgba(240, 240, 240, 0.8);
  --input-border: rgba(200, 200, 200, 0.5);
  --surface-hover: rgba(248, 118, 33, 0.05);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-primary: var(--primary);
  --color-primary-light: var(--primary-light);
  --color-primary-dark: var(--primary-dark);
  --color-accent: var(--accent);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
    --primary: #f87621;
    --primary-light: #ff9a60;
    --primary-dark: #d16013;
    --accent: #ffd8b5;
    --tertiary: #262626;
    --card-bg: #1a1a1a;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    --card-border: rgba(50, 50, 50, 0.8);
    --input-border: rgba(80, 80, 80, 0.5);
    --surface-hover: rgba(248, 118, 33, 0.08);
  }
}

html,
body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans), Arial, Helvetica, sans-serif;
  background-image: radial-gradient(
      circle at 100% 0%,
      rgba(255, 160, 40, 0.1) 0%,
      rgba(255, 120, 0, 0.06) 40%,
      transparent 70%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(255, 152, 56, 0.08) 0%,
      rgba(255, 201, 163, 0.04) 50%,
      transparent 70%
    ),
    linear-gradient(
      to bottom right,
      rgba(255, 152, 56, 0.06) 0%,
      rgba(255, 201, 163, 0.08) 50%,
      rgba(255, 244, 235, 0.05) 100%
    );
  background-attachment: fixed;
}

/* Make sure content containers preserve the full-height layout */
#__next,
.min-h-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Animation classes */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation for tooltip fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Slow pulse animation for the API button */
@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 2s ease-in-out infinite;
}

.orange-gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.orange-gradient-bg {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.navbar-gradient {
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.95),
    rgba(255, 248, 242, 0.95)
  );
  border-bottom: 1px solid rgba(248, 118, 33, 0.1);
}

.card {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(5px);
  border: 1px solid var(--card-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(0, 0, 0, 0.07);
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  height: 6px;
  border-radius: 3px;
}

/* Podcast app specific styles */
.podcast-artwork {
  border-radius: 1rem;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.podcast-artwork:hover {
  transform: scale(1.02);
}

.waveform-container {
  position: relative;
  height: 50px;
  width: 100%;
  margin-top: 1rem;
  cursor: pointer;
}

.waveform-bg {
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 2px;
}

.waveform-progress-overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 2px;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.1s ease;
}

.waveform-bar {
  flex: 1;
  height: 40%;
  background-color: #e5e7eb;
  border-radius: 1px;
  transition: height 0.2s ease;
}

.waveform-bar.active {
  background: var(--primary);
  opacity: 0.8;
}

.waveform-bar.playing {
  animation: sound 1s ease-out infinite alternate;
}

@keyframes sound {
  0% {
    height: 35%;
  }
  100% {
    height: 50%;
  }
}

.podcast-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.play-button {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #606060;
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.play-button:hover {
  transform: scale(1.05);
  background: #505050;
}
